import BasicLayout from '@/layouts/BasicLayout';
import Dashboard from '@/pages/Dashboard';
import { lazy } from 'react';

const routerConfig = [
  {
    path: '/',
    component: BasicLayout,
    children: [
      {
        path: '/',
        exact: true,
        component: Dashboard,
      },
      {
        path: '/login',
        exact: true,
        component: lazy(() => import('./pages/Login')),
      },
      {
        path: '/settings',
        exact: true,
        component: lazy(() => import('./pages/Setting')),
      },
    ],
  },
];
export default routerConfig;
